//
// api.js
// vue3-element-admin
//
// Created by 区区电脑 on 2023/04/11.
//



import request from "@/request"


/**
 * 查询字典值分页列表
 * @param params
 * @returns {*}
 * @constructor
 */
export function GetDictDataPageList(params = {}) {
    return request({url: '/api/SysDict/GetDictDataPageList', method: 'GET', params})
}

/**
 * 查询字典类型下所有值
 * @param params
 * @returns {*}
 * @constructor
 */
export function GetDictTypeDropDown(params = {}) {
    return request({url: '/api/SysDict/GetDictTypeDropDown', method: 'GET', params})
}

/**
 * 添加字典值
 * @param data
 * @returns {*}
 * @constructor
 */
export function AddDictData(data = {}) {
    return request({url: '/api/SysDict/AddDictData', method: 'POST', data})
}

/**
 * 修改字典值
 * @param data
 * @returns {*}
 * @constructor
 */
export function UpdateDictData(data = {}) {
    return request({url: '/api/SysDict/UpdateDictData', method: 'PUT', data})
}

/**
 * 删除字典值
 * @param data
 * @returns {*}
 * @constructor
 */
export function DeleteDictData(data = {}) {
    return request({url: '/api/SysDict/DeleteDictData', method: 'DELETE', data})
}
